<style>
    .subsite{
        height:auto !important;
    }
</style>

<div class="flexform">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'id' => 'linkfirends-form',
        'enableAjaxValidation' => false
            ));
    ?>
    <div class="row">
        <?php echo $form->labelEx($model, 'link_name'); ?>
        <?php echo $form->textField($model, 'link_name', array('size' => 40, 'maxlength' => 40)); ?>
        <?php echo $form->error($model, 'link_name', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'link_url'); ?>
        <?php echo $form->textField($model, 'link_url', array('size' => 40, 'maxlength' => 40)); ?>
        <?php echo $form->error($model, 'link_url', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'link_open'); ?>
        <?php echo $form->dropDownlist($model, 'link_open', array() + $model->link_open_array); ?>
        <?php echo $form->error($model, 'link_open', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'link_sort'); ?>
        <?php echo $form->dropDownlist($model, 'link_sort', array() + $model->link_sort_array); ?>
        <?php echo $form->error($model, 'link_sort', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'is_nofollow'); ?>
        <?php echo $form->dropDownlist($model, 'is_nofollow',array()+$model->is_nofollow_array); ?>
        <?php echo $form->error($model, 'is_nofollow', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model, 'site_key'); ?>
        <?php echo $form->dropDownlist($model, 'site_key',Subsite::model()->getdomain(),array('multiple'=>'multiple','size'=>'10','class'=>'subsite')); ?>
        <?php echo $form->error($model, 'site_key', array('class' => 'form-msg-error-advanced')); ?>
    </div>

    <div class="action">
        <?php echo CHtml::submitButton($model->isNewRecord ? '创建' : '保存'); ?>
    </div>
    <?php $this->endWidget(); ?>
</div><!-- form -->
<div class="clear"></div>